From: bors Date: Fri, 13 May 2016 00:28:15 +0000 (-0700) Subject: Auto merge of #2681 - alexcrichton:cargo-env-home, r=brson X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~14^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=0907288d30067f876b0611266e882adc4e5fcc72;p=cargo.git Auto merge of #2681 - alexcrichton:cargo-env-home, r=brson Canonicalize CARGO_HOME fallback on Windows This commit ensures that we always return the same fallback value on Windows regardless of whichever shell we happen to be run from. We do this by removing the `$HOME` environment variable which `std::env::home_dir` will inspect to force it to fall back to the system APIs. If the old directory exists then we favor that one, but otherwise we favor locations like `C:\Users\$user` Supercedes and closes #2604 --- 0907288d30067f876b0611266e882adc4e5fcc72